#include "MesureTemplateMethod.hpp"
#include <iostream>




/**
  * changes x and y if they are lower or greater than the image borders.
  *
  */
void MesureTemplateMethod::clamp(int &x,int &y, const girl::tools::Image &image) const
{

    if(x < 0) x =0;
    if(x > image.width() -10) x = image.width() -10;
    if(y < 0) y=0;
    if(y > image.height() -10) y = image.height() -10;
}
